<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    date格式化：<span th:text="${#dates.format(date,'yyyy-MM-dd')}"></span><br>
    当前日期：<span th:text="${#dates.createToday()}"></span><br>
    当前时间：<span th:text="${#dates.createNow()}"></span><br>
    Calendar格式：<span th:text="${#calendars.format(calendar,'yyyy-MM-dd')}"></span><br>
    number百分比格式化：<span th:text="${#numbers.formatPercent(number,2,2)}"></span><br>
    name是否为空：<span th:text="${#strings.isEmpty(string)}"></span><br>
    name的长度：<span th:text="${#strings.length(string)}"></span><br>
    name拼接：<span th:text="${#strings.concat('Good', string)}"></span><br>
    boolean是否为true：<span th:text="${#bools.isTrue(boolean)}"></span><br>
    arrays的长度：<span th:text="${#arrays.length(array)}"></span><br>
    arrays是否包含张三：<span th:text="${#arrays.contains(array,'张三')}"></span><br>
    List是否为空：<span th:text="${#lists.isEmpty(list)}"></span><br>
    List长度：<span th:text="${#lists.size(list)}"></span><br>
    Set是否为空：<span th:text="${#sets.isEmpty(set)}"></span><br>
    Set长度：<span th:text="${#sets.size(set)}"></span><br>
    Map是否为空：<span th:text="${#maps.isEmpty(map)}"></span><br>
    Map长度：<span th:text="${#maps.size(map)}"></span><br>
</body>
</html>